package com.ruoyi.business.domain;

import java.math.BigDecimal;
import java.util.List;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 出库单对象 jt_outbound_order
 * 
 * @author Alan Zhang
 * @date 2025-06-19
 */
public class JtOutboundOrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 出库单id */
    private Long outboundOrderId;

    /** 仓库ID */
    private Long warehouseId;

    /** 仓库 */
    @Excel(name = "仓库")
    private String warehouseName;

    /** 出库号 */
    @Excel(name = "出库号")
    private String outboundOrderNo;

    /** 关联单号 */
    @Excel(name = "关联单号")
    private String relOrderNo;

    /** 单据日期 */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @Excel(name = "单据日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date documentDate;

    /** 出库总数量 */
    @Excel(name = "出库总数量")
    private Long totalQty;

    /** 出库总金额 */
    @Excel(name = "出库总金额")
    private BigDecimal totalAmount;

    /** 状态 0待出库  1已出库 2已取消 */
    @Excel(name = "状态", dictType = "jt_outbound_status", comboReadDict = true)
    private Integer status;

    /** 出库类型  1采购退货 2销售出库*/
    @Excel(name = "出库类型", dictType = "jt_outbound_type", comboReadDict = true)
    private Integer outboundType;

    /** 出库日期 */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @Excel(name = "出库日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date outboundDate;

    /** 出库单明细信息 */
    private List<JtOutboundOrderItem> jtOutboundOrderItemList;

    public void setOutboundOrderId(Long outboundOrderId) 
    {
        this.outboundOrderId = outboundOrderId;
    }

    public Long getOutboundOrderId() 
    {
        return outboundOrderId;
    }

    public void setWarehouseId(Long warehouseId) 
    {
        this.warehouseId = warehouseId;
    }

    public Long getWarehouseId() 
    {
        return warehouseId;
    }

    public String getWarehouseName() {
        return warehouseName;
    }

    public void setWarehouseName(String warehouseName) {
        this.warehouseName = warehouseName;
    }

    public void setOutboundOrderNo(String outboundOrderNo)
    {
        this.outboundOrderNo = outboundOrderNo;
    }

    public String getOutboundOrderNo() 
    {
        return outboundOrderNo;
    }

    public void setRelOrderNo(String relOrderNo) 
    {
        this.relOrderNo = relOrderNo;
    }

    public String getRelOrderNo() 
    {
        return relOrderNo;
    }

    public void setDocumentDate(Date documentDate) 
    {
        this.documentDate = documentDate;
    }

    public Date getDocumentDate() 
    {
        return documentDate;
    }

    public void setTotalQty(Long totalQty)
    {
        this.totalQty = totalQty;
    }

    public Long getTotalQty()
    {
        return totalQty;
    }

    public void setTotalAmount(BigDecimal totalAmount) 
    {
        this.totalAmount = totalAmount;
    }

    public BigDecimal getTotalAmount() 
    {
        return totalAmount;
    }

    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }

    public void setOutboundType(Integer outboundType) 
    {
        this.outboundType = outboundType;
    }

    public Integer getOutboundType() 
    {
        return outboundType;
    }

    public void setOutboundDate(Date outboundDate) 
    {
        this.outboundDate = outboundDate;
    }

    public Date getOutboundDate() 
    {
        return outboundDate;
    }

    public List<JtOutboundOrderItem> getJtOutboundOrderItemList()
    {
        return jtOutboundOrderItemList;
    }

    public void setJtOutboundOrderItemList(List<JtOutboundOrderItem> jtOutboundOrderItemList)
    {
        this.jtOutboundOrderItemList = jtOutboundOrderItemList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("outboundOrderId", getOutboundOrderId())
            .append("warehouseId", getWarehouseId())
            .append("outboundOrderNo", getOutboundOrderNo())
            .append("relOrderNo", getRelOrderNo())
            .append("documentDate", getDocumentDate())
            .append("totalQty", getTotalQty())
            .append("totalAmount", getTotalAmount())
            .append("status", getStatus())
            .append("outboundType", getOutboundType())
            .append("outboundDate", getOutboundDate())
            .append("remark", getRemark())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("jtOutboundOrderItemList", getJtOutboundOrderItemList())
            .toString();
    }
}
